package com.njust.controller;

import com.njust.domain.dto.UserSignInDTO;
import org.apache.logging.log4j.util.PerformanceSensitive;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @Author Imak
 * @Date 2024/10/16 20:19
 * @注释
 */
@RestController
public class HelloController {
    @RequestMapping("/hello")
    public String hello(){
        return "hello";
    }

    @PostMapping("/test")
    public String test(@RequestBody UserSignInDTO userSignInDTO){
        System.out.println(userSignInDTO);
        return userSignInDTO.toString();
    }

    @RequestMapping("/")
    public String index(){
        return "111";
    }

}
